package cn.iocoder.yudao.framework.security.config;

import cn.iocoder.yudao.framework.security.core.rpc.LoginUserRequestInterceptor;
import cn.iocoder.yudao.module.system.api.oauth2.OAuth2TokenApi;
import cn.iocoder.yudao.module.system.api.permission.PermissionApi;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author ext.gouying3
 * @date 2025/7/15
 */
@AutoConfiguration
@EnableFeignClients(clients = {OAuth2TokenApi.class, PermissionApi.class})
public class YudaoSecurityRpcAutoConfiguration {


    @Bean
    public LoginUserRequestInterceptor loginUserRequestInterceptor() {
        return new LoginUserRequestInterceptor();
    }
}
